package org.efssc
def BuildJar(apptype) {
    if (apptype == "springboot") {
        //sh "mvn clean package -Dmaven.test.skip=true"
        sh "mvn clean install -gs devops/settings.xml -Dmaven.test.skip=true -Dmaven.javadoc.skip=true"
    } else if (apptype == "npm"){
        sh "npm run build"
    } else {
        println("执行的buildtype类型未添加 或者输入的buildtype类型有错误")
    }
}